package pl.koziolekweb.prusakolep.controllers;

import java.util.Map;

/**
 * 
 * @author bartlomiejk
 *
 *
 * $Id: ConsoleDispatcher.java 110 2009-02-17 13:20:39Z bjkuczynski $
 */
public class ConsoleDispatcher {
	
	private Map<String, Controller> mapping;

	public ConsoleDispatcher(Map<String, Controller> mapping) {
		super();
		this.mapping = mapping;
	}
	
	public void dispatch(String action, Map<String, Object> params){
		mapping.get(action).action(params);
	}
}
